<ion-view view-title="灵活理财" hide-back-button="true">
    <ion-nav-bar class="bar-positive nav-bar-container">
        <ion-nav-buttons side="left">
            <button class="button button-clear" ui-sref="web.user-index" nav-direction="back">
                <i class="icon ion-chevron-left" ></i> 返回
            </button>
        </ion-nav-buttons>
    </ion-nav-bar>
  <ion-content class="content has-header ionic-pseudo">
    <div class="user-index-asset assertive-bg">
      <div class="latestincome">
        <p class="tc light">最新收益  {{assets.lastIncomeDateStr}}</p>
        <p class="tc"><a class="light size-21">¥{{assets.lastIncome}}</a></p>
      </div>
      <div class="line"></div>
      <div class="totalincome">
        <p class="tc light">累计收益</p>
        <p class="tc"><a class="light size-21">¥{{assets.totalIncome}}</a></p>
      </div>
    </div>
    <div class="user-index-total assertive-bg item-icon-right">
      <div class="latestincome">
        <p class="tc light">总资产<a class="size-24 light"> ¥{{assets.livingMoney}}</a></p>
      </div>
      <div class="line"></div>
      <div class="totalincome" ui-sref="user-asset-trhistory({t:'hqb'})">
        <p class="light tr">交易记录</p>
      </div>
      <i class="icon light ion-chevron-right icon-accessory" ></i>
    </div>
    <div class="bottom-line"></div>
    
<!--     <div class="item item-icon-right" ui-sref="user-asset-return">
  <div class="product-detail-left size-14">我的回款计划</div>
  <i class="icon ion-ios-arrow-right"></i>
</div> -->
    <div class="user-index-total item-icon-right">
      <div class="latestincome">
        <p class="padding-left">我的灵活理财</p>
      </div>
      <div class="line"></div>
      <div class="totalincome" ui-sref="products({moduleId:1})">
        <p class="tr padding-right"><a>转入&nbsp;&nbsp;</a></p>
      </div>
      <i class="icon light ion-chevron-right icon-accessory" ></i>
    </div> 
    <div class="list">
      <div class="item row item-icon-right" ng-repeat="tra in payedlist">
        <div class="col" ui-sref="user-asset-hqbdetail({id:tra.id})">
          {{tra.productName}}<br/>
          {{tra.createTime | date: 'yyyy-MM-dd'}}<br/>
        </div>
        <div class="col asset-dqb-amount" ui-sref="user-asset-hqbdetail({id:tra.id,action:'rollout'})" ng-if="tra.tradeAmount>0">            
          <i class="icon ion-chevron-right icon-accessory"></i>
          <p class="tr padding-right">¥{{tra.tradeAmount}}&nbsp;&nbsp;&nbsp;&nbsp;<a>转出</a></p>
        </div>
        <div class="col asset-dqb-amount" ui-sref="user-asset-hqbdetail({id:tra.id})" ng-if="tra.tradeAmount==0">
          <i class="icon ion-chevron-right icon-accessory"></i>
          <p class="tr padding-right">¥{{tra.tradeAmount}}&nbsp;&nbsp;&nbsp;&nbsp;</p>
        </div>
      </div> 

      <!-- <div class="item item-icon-right" ui-sref="user-asset-dqbdetail({id:'aa'})">
        <div class="">
          <p>半年稳赚宝63号</p>
          <p>20天后到期</p>
          <div class="asset-dqb-amount">
            <i class="icon ion-ios-arrow-right"></i>
            <p>￥1000</p>
          </div>
        </div>
      </div>
      <div class="item item-icon-right" ui-sref="user-asset-dqbdetail({id:'aa'})">
        <div class="">
          <p>半年稳赚宝64号</p>
          <p>30天后到期</p>
          <div class="asset-dqb-amount">
            <i class="icon ion-ios-arrow-right"></i>
            <p>￥1000</p>
          </div>
        </div>
      </div>
      <div class="item item-icon-right" ui-sref="user-asset-dqbdetail({id:'aa'})">
        <div class="">
          <p>半年稳赚宝65号</p>
          <p>今天到期</p>
          <div class="asset-dqb-amount">
            <i class="icon ion-ios-arrow-right"></i>
            <p>￥1000</p>
          </div>
        </div>
      </div> --> 
    </div>
  </ion-content>
</ion-view>